﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Longbow
{
	class AssemblyModuleRef : IModuleRef
	{
		/// <summary>
		/// full file name
		/// </summary>
		private string moduleName = null;


		private bool loaded = false;


		public AssemblyModuleRef(string moduleName)
		{
			this.moduleName = moduleName;
		}


		public string ModuleName
		{
			get { return moduleName; }
		}


		#region IModuleRef

		public bool Loaded { get { return this.loaded; }}

			


		public ModuleType ModuleType
		{
			get { return ModuleType.AssemblyModule; }
		}

		public bool Load()
		{
			AssemblyModuleLoader aml = ModuleManager.GetAssemblyModuleLoader();

			aml.Load(this.moduleName);

			return true;
		}

		#endregion
	}
}
